<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>第一个vue项目的if判断</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        window.onload = function () {
            var app = new Vue({
                //定义el和data
                el: '.box',
                delimiters: ['[[', ']]'],
                data: {
                    flage: 3,
                    isshow: false
                    //可以控制标签的display属性 是否显示标签
                }
            })
        }
    </script>
</head>
<body>
<div class="box">
    <p v-if="flage==1">vif-----</p>
    <p v-else-if="flage==2">velseif123</p>
    <p v-else-if="flage==3">velseifabc</p>
    <p v-else>else</p>
    <p v-if="isshow">hehehe</p>
</div>

</body>
</html>